<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新闻详细</title>
<script src="js/jquery-1.9.0.js" type="text/javascript"></script>
<script src="js/index.menu.js" type="text/javascript"></script>
<script src="js/header.js" type="text/javascript"></script>
<script src="js/news.detail.js" type="text/javascript"></script>

<script type="text/javascript" src="js/jquery.pagination.js"></script>
</head>

<link href="css/common.css" type="text/css" rel="stylesheet" />
<link href="css/detail.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="css/pagination.css" />
<body>
	<div id="container">
		<div id="header">
			<jsp:include page="header.jsp"></jsp:include>
		</div>
		<div id="content">
			<div id="new_menu">
				<s:set name="news" value="news"></s:set>
			</div>
			<div id="news">
				<div id="news_from">
					<s:iterator value="newsTypesList">
						<s:property value="name" />&gt;
					</s:iterator>
					正文
				</div>
				<div id="news_title">
					<s:property value="news.title"></s:property>
				</div>
				<div id="news_subtitle">
					<s:date name="news.publishTime" format="yyyy-MM-dd HH:mm:ss" />
					&nbsp;&nbsp;点击次数[
					<s:property value="news.clickCount" />
					]&nbsp;&nbsp;
					<s:property value="userName" />
					<a title="点击查看跟贴" href="">有[<font id="replyCount"></font> <s:property
							value="replyCount" />]人参与
					</a> <a title="快速发贴" id="send_re"> <img alt="快速发贴"
						src="img/gototie.gif" width="15" height="15" />
					</a>

				</div>

				<div id="news_article">
					<s:property value="news.content" />
				</div>
				<hr>
				<div id="news_replyList">
					<div class="reply_item"></div>
				</div>
				<div id="article_reply">

					<form id="commentForm" name="commentForm" method="post" action="">

						<textarea name="comment" id="comment"
							style="hight: 250px; width: 500px;"></textarea>
						<br> <input type="hidden" id="newsId" name="newsId"
							value="<s:property value="news.newsId" />" /> <input
							type="hidden" id="userId" name="userId"
							value="<s:property value="%{#session.user.userId}" />" />
						<s:if test="null==#session.user||#session.user.isEmpty()">
							<input type="button" name="btnCom1" id="btnCom1" value="发帖" />
						</s:if>
						<s:else>
							<input type="button" name="btnCom2" id="btnCom2" value="发帖" />
						</s:else>
					</form>
				</div>


			</div>

		</div>

		<div id="bt">
			<div id="Pagination" class="pagination"></div>
		</div>

		<div id="footer">
			<jsp:include page="footer.jsp"></jsp:include>
		</div>
	</div>
</body>
</html>